package com.server.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;
import java.util.StringJoiner;

/**
 * The type Sessions.
 */
public class Sessions {
    private Integer sessionsId;

    private Integer sessionsMoviesInfo;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date sessionsStartTime;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date sessionsEndTime;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date sessionsCreate;

    /**
     * Instantiates a new Sessions.
     *
     * @param sessionsMoviesInfo the sessions movies info
     * @param sessionsStartTime  the sessions start time
     * @param sessionsEndTime    the sessions end time
     * @param sessionsCreate     the sessions create
     */
    public Sessions(Integer sessionsMoviesInfo, Date sessionsStartTime, Date sessionsEndTime, Date sessionsCreate) {
        this.sessionsMoviesInfo = sessionsMoviesInfo;
        this.sessionsStartTime = sessionsStartTime;
        this.sessionsEndTime = sessionsEndTime;
        this.sessionsCreate = sessionsCreate;
    }

    /**
     * Instantiates a new Sessions.
     */
    public Sessions() {
    }

    /**
     * Gets sessions id.
     *
     * @return the sessions id
     */
    public Integer getSessionsId() {
        return sessionsId;
    }

    /**
     * Sets sessions id.
     *
     * @param sessionsId the sessions id
     */
    public void setSessionsId(Integer sessionsId) {
        this.sessionsId = sessionsId;
    }

    /**
     * Gets sessions movies info.
     *
     * @return the sessions movies info
     */
    public Integer getSessionsMoviesInfo() {
        return sessionsMoviesInfo;
    }

    /**
     * Sets sessions movies info.
     *
     * @param sessionsMoviesInfo the sessions movies info
     */
    public void setSessionsMoviesInfo(Integer sessionsMoviesInfo) {
        this.sessionsMoviesInfo = sessionsMoviesInfo;
    }

    /**
     * Gets sessions start time.
     *
     * @return the sessions start time
     */
    public Date getSessionsStartTime() {
        return sessionsStartTime;
    }

    /**
     * Sets sessions start time.
     *
     * @param sessionsStartTime the sessions start time
     */
    public void setSessionsStartTime(Date sessionsStartTime) {
        this.sessionsStartTime = sessionsStartTime;
    }

    /**
     * Gets sessions end time.
     *
     * @return the sessions end time
     */
    public Date getSessionsEndTime() {
        return sessionsEndTime;
    }

    /**
     * Sets sessions end time.
     *
     * @param sessionsEndTime the sessions end time
     */
    public void setSessionsEndTime(Date sessionsEndTime) {
        this.sessionsEndTime = sessionsEndTime;
    }

    /**
     * Gets sessions create.
     *
     * @return the sessions create
     */
    public Date getSessionsCreate() {
        return sessionsCreate;
    }

    /**
     * Sets sessions create.
     *
     * @param sessionsCreate the sessions create
     */
    public void setSessionsCreate(Date sessionsCreate) {
        this.sessionsCreate = sessionsCreate;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Sessions.class.getSimpleName() + "[", "]")
                .add("sessionsId=" + sessionsId)
                .add("sessionsMoviesInfo=" + sessionsMoviesInfo)
                .add("sessionsStartTime=" + sessionsStartTime)
                .add("sessionsEndTime=" + sessionsEndTime)
                .add("sessionsCreate=" + sessionsCreate)
                .toString();
    }
}